home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-17 | 767 b | 41 lines | [TEXT/MPS ] |
- /************************************************************
-
- Assert.h
- Diagnostics
-
- Copyright © Apple Computer,Inc. 1987-1990, 1994,1995.
- All Rights Reserved.
-
- ************************************************************/
-
- #undef assert
-
- #ifdef NDEBUG
-
- #define assert(ignore) ((void) 0)
-
- #else
-
- #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
- #pragma import on
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- void __assertprint(const char* file, int line, const char* expr);
-
- #ifdef __cplusplus
- }
- #endif
-
- #define assert(expression) \
- ( (expression) ? (void) 0 : (__assertprint(__FILE__, __LINE__, #expression)) )
-
- #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
- #pragma import off
- #endif
-
- #endif
-